package com._520it.crm.mapper;

import com._520it.crm.domain.Driver;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface DriverMapper {
    int deleteByPrimaryKey(@Param("id") Long id, @Param("drivingType") String drivingType);

    int insert(Driver record);

    Driver selectByPrimaryKey(@Param("id") Long id, @Param("drivingType") String drivingType);

    List<Driver> selectAll();

    int updateByPrimaryKey(Driver record);

    List<Driver> selectPage(@Param("current") int current,
                            @Param("size") int size,
                            @Param("name") String name,
                            @Param("sex") String sex,
                            @Param("drivingType") String drivingType,
                            @Param("drivingNum") String drivingNum,
                            @Param("occupation") String occupation,
                            @Param("birthDate") Date birthDate,
                            @Param("firstDate") Date firstDate);

    int selectPageCount(@Param("current") int current,
                        @Param("size") int size,
                        @Param("name") String name,
                        @Param("sex") String sex,
                        @Param("drivingType") String drivingType,
                        @Param("drivingNum") String drivingNum,
                        @Param("occupation") String occupation,
                        @Param("birthDate") Date birthDate,
                        @Param("firstDate") Date firstDate);
}